import Login from "../pages/admin/Login";
import Dashboard from "../pages/admin/dashboard";
import List from "../pages/admin/products/List";
import Edit from "../pages/admin/products/Edit";
import PageNotFound from "../pages/PageNotFound";
import { AreaChartOutlined, ShoppingOutlined } from '@ant-design/icons';
import Notice from "../pages/admin/notice";

export const mainRoutes = [{
    path: "/login",
    component: Login
}, {
    path: "/404",
    component: PageNotFound
}]

export const adminRoutes = [{
    path: "/admin/dashboard",
    component: Dashboard,
    isShow: true,
    title: '看板',
    icon: <AreaChartOutlined />
},
{
    path: "/admin/products",
    component: List,
    isShow: true,
    exact: true,
    title: '商品管理',
    icon: <ShoppingOutlined />
},
{
    path: "/admin/products/edit/:id?",
    component: Edit,
    isShow: false,
},
{
    path: "/admin/notice",
    component: Notice,
    isShow: false,
}]